import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

public class ThreadDemo {
    public static void main(String[] args) throws InterruptedException {
        BlockingDeque<String> blockingDeque=new LinkedBlockingDeque<String>() ;
        blockingDeque.put("hello");
        String s=blockingDeque.take();
        System.out.println(s);
        blockingDeque.take();
    }
}
